package com.atguigu.gulimall.seckill.scheduler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.*;
import org.springframework.stereotype.Service;

@Service
//@EnableScheduling
//@EnableAsync
@Slf4j
public class HelloScheduler {


    //    @Async
//    @Scheduled(cron = "*/5 * * * * *")
    public void hello() throws InterruptedException {
        log.info("hello tiger!");
        Thread.sleep(3000);
    }
}
